package shortcircuit.basics.block;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;

import shortcircuit.Display;
import shortcircuit.basics.*;

/**
 * Creates a block known as a <i>Four-Way Block</i>.  This block has all directions
 * as free walls and a pink color.
 * 
 * @author Kevin Lewi
 */
public class Block6 extends Block
{
	public Block6()
	{
		super();
		theImage = Display.imageBlock[6];
		int[] theFreeWalls = {Wall.WEST, Wall.NORTH, Wall.EAST, Wall.SOUTH};
		applyFreeWalls(theFreeWalls);
		_Walls[Wall.WEST].setLinkedDirection(Wall.NORTH);
		_Walls[Wall.WEST].setLinkedDirection(Wall.EAST);
		_Walls[Wall.WEST].setLinkedDirection(Wall.SOUTH);
		_Walls[Wall.NORTH].setLinkedDirection(Wall.WEST);
		_Walls[Wall.NORTH].setLinkedDirection(Wall.EAST);
		_Walls[Wall.NORTH].setLinkedDirection(Wall.SOUTH);
		_Walls[Wall.EAST].setLinkedDirection(Wall.WEST);
		_Walls[Wall.EAST].setLinkedDirection(Wall.NORTH);
		_Walls[Wall.EAST].setLinkedDirection(Wall.SOUTH);
		_Walls[Wall.SOUTH].setLinkedDirection(Wall.WEST);
		_Walls[Wall.SOUTH].setLinkedDirection(Wall.NORTH);
		_Walls[Wall.SOUTH].setLinkedDirection(Wall.EAST);
		
	}
	
	protected Color getBlockColor()
	{
		return Color.PINK;
	}
}
